﻿#ifndef THREAD_FACTORY_H
#define THREAD_FACTORY_H

#include <pthread.h>

class ThreadFactory {
public:
    ThreadFactory() {}

    virtual ~ThreadFactory() {}

    ThreadFactory(const ThreadFactory &);

public:
    virtual pthread_t &createThread(void *(task_function)(void *), void *args) = 0;
};

#endif
